/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.model;

import com.dp.utils.BaseException;
import java.io.Serializable;
import java.util.List;

/**
 *
 * @author hisik
 */
public interface IBaseDao<T extends BaseEntity> {
    
    public T findByObjId(Serializable id) throws BaseException;
    
    public List<T> findAll() throws BaseException; 
        
    public void saveOrUpdate(T instance) throws BaseException;
    
    public void delete(T instance) throws BaseException;
    
    public void deleteByObjid(Serializable id) throws BaseException;
}
